package com.dou.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dou.entity.Order;
import com.dou.service.OrderService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RpcOrderServiceimpl implements OrderService {
    @Reference
    private OrderService orderService;//远程调用orderService
    @Override
    public List<Order> getAllOrder() {
        return orderService.getAllOrder();
    }
}
